package chap3_9;

import java.util.Scanner;

public class Exer3_9_1 {
    public static void main(String[] args) {
        System.out.println("请输入一个数：");
        Scanner input = new Scanner(System.in);
        int num = input.nextInt();
        int i = 0;
        for (; i <=num; i++) {
            if (i * i == num) {
                break;
            }
        }
        if (i >num) {
            System.out.println(num + "不是任何数的平方数");
        } else {
            System.out.println(num + "是" + i + "的平方数");
        }
    }
}
